package demo1;

public class String_construct {
    public static void main(String[] args) {
        String s1="hhh";

        String s2=new String("hzp");

        char[] string={'a','b','c','d','e'};
        String s3=new String(string);

        byte[] bytes={97,98,99,100};
        String s4=new String(bytes);

        System.out.println(s1);
        System.out.println(s2);
        System.out.println(s3);
        System.out.println(s4);
    }
}
